package com.creditcmsplt.adapter;


/**
 * oauth2资源服务器
 * @author 雷阳军
 *
 */
/*@Configuration
@EnableResourceServer*/
public class ResourceServerConfig /*extends ResourceServerConfigurerAdapter*/ {

    /*@Override
    public void configure(ResourceServerSecurityConfigurer resources) {
        resources.resourceId("users-info");
    }

    @Override
    public void configure(HttpSecurity http) throws Exception {
        http
            .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
            .and()
            .requestMatchers()
            .antMatchers("/users/**")
            .and().authorizeRequests()
            .antMatchers("/users/**")
            .authenticated();
    }*/
    

}
